package cn.edu.scujcc;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ShoppingCarService {
	@Autowired
	private ShoppingCarRepository repo;
	
	public List<ShoppingCar> getAllShoplist(){
		List<ShoppingCar> result = null;
		result = repo.findAll();
		return null;
	}
	
	public boolean delShoppingCar(String id) {
		boolean result = true;
		try {
			repo.deleteById(id);
		} catch (Exception e) {
			return false;
		}
		return result;		
	}
}

